#ifndef __IPU_UTILS_H_
#define __IPU_UTILS_H_

/* match ipu driver define */
typedef enum {
    HAL_PIXEL_FORMAT_RGBA_8888    = 1,
    HAL_PIXEL_FORMAT_RGBX_8888    = 2,
    HAL_PIXEL_FORMAT_RGB_888      = 3,
    HAL_PIXEL_FORMAT_RGB_565      = 4,
    HAL_PIXEL_FORMAT_BGRA_8888    = 5,
    //HAL_PIXEL_FORMAT_BGRX_8888  = 0x8000, /* Add BGRX_8888, Wolfgang, 2010-07-24 */
    HAL_PIXEL_FORMAT_BGRX_8888    = 0x1ff, /* 2012-10-23 */
    HAL_PIXEL_FORMAT_RGBA_5551    = 6,
    HAL_PIXEL_FORMAT_RGBA_4444    = 7,
    HAL_PIXEL_FORMAT_ABGR_8888    = 8,
    HAL_PIXEL_FORMAT_ARGB_8888    = 9,
    HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10,
    HAL_PIXEL_FORMAT_YCbCr_420_SP = 0x11,
    HAL_PIXEL_FORMAT_YCbCr_422_P  = 0x12,
    HAL_PIXEL_FORMAT_YCbCr_420_P  = 0x13,
    HAL_PIXEL_FORMAT_YCbCr_420_B  = 0x24,
    HAL_PIXEL_FORMAT_YCbCr_422_I  = 0x14,
    HAL_PIXEL_FORMAT_YCbCr_420_I  = 0x15,
    HAL_PIXEL_FORMAT_CbYCrY_422_I = 0x16,
    HAL_PIXEL_FORMAT_CbYCrY_420_I = 0x17,
    HAL_PIXEL_FORMAT_NV12         = 0x18,
    HAL_PIXEL_FORMAT_NV21         = 0x19,
    HAL_PIXEL_FORMAT_BGRA_5551    = 0x1a,
    HAL_PIXEL_FORMAT_HSV          = 0x1b,

    /* suport for YUV420 */
    HAL_PIXEL_FORMAT_JZ_YUV_420_P = 0x47700001, // YUV_420_P
    HAL_PIXEL_FORMAT_JZ_YUV_420_B = 0x47700002, // YUV_420_P BLOCK MODE
}piexl_format_t;

#endif /* __IPU_UTILS_H_ */